import { NavigationGuardNext, RouteLocationNormalized } from "vue-router";
// import {Notify} from 'vant';
//
export default (to: RouteLocationNormalized, from: RouteLocationNormalized, next: NavigationGuardNext) => {
    to
    from
    // //修改meta
    // //检测是否具有权限
    // if (!to.meta.noAuth && !localStorage.getItem('TOKEN') && from) {
    //     next('/login')
    //     // Notify({message: '缺少凭证，请重新登录', type: 'danger'})
    // } else {
    //     if (to.matched.length === 0) {
    //         next('/404')
    //     } else {
            next()
    //     }
    // }
}